package org.tempuri;

public class WsConsultaClienteSoapProxy implements org.tempuri.WsConsultaClienteSoap {
  private String _endpoint = null;
  private org.tempuri.WsConsultaClienteSoap wsConsultaClienteSoap = null;
  
  public WsConsultaClienteSoapProxy() {
    _initWsConsultaClienteSoapProxy();
  }
  
  public WsConsultaClienteSoapProxy(String endpoint) {
    _endpoint = endpoint;
    _initWsConsultaClienteSoapProxy();
  }
  
  private void _initWsConsultaClienteSoapProxy() {
    try {
      wsConsultaClienteSoap = (new org.tempuri.WsConsultaClienteLocator()).getwsConsultaClienteSoap();
      if (wsConsultaClienteSoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)wsConsultaClienteSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)wsConsultaClienteSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (wsConsultaClienteSoap != null)
      ((javax.xml.rpc.Stub)wsConsultaClienteSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public org.tempuri.WsConsultaClienteSoap getWsConsultaClienteSoap() {
    if (wsConsultaClienteSoap == null)
      _initWsConsultaClienteSoapProxy();
    return wsConsultaClienteSoap;
  }
  
  public int consultaCliente(java.lang.String token, java.lang.String cpf) throws java.rmi.RemoteException{
    if (wsConsultaClienteSoap == null)
      _initWsConsultaClienteSoapProxy();
    return wsConsultaClienteSoap.consultaCliente(token, cpf);
  }
  
  
}